package pub.strawhat.album.controller;

import org.apache.shiro.authz.annotation.RequiresRoles;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class AdminController {

	@RequiresRoles("admin")
	@GetMapping(value = "/admin")
	public String admin() {
		return "admin/home";
	}

	@GetMapping(value = "/login")
	public String login() {
		return "admin/login";
	}

}